﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MyLibrary.ThreeLayer.Entity
{
    [AttributeUsage(AttributeTargets.Property)]
    public class DateTimeFieldAttribute : ValidateAttribute, IValidateAttribute<DateTime>
    {
        DateTime _default = DateTime.Now;

        DateTime IValidateAttribute<DateTime>.Default
        {
            get { return _default; }
            set { _default = value; }
        }

        public DateTimeFieldAttribute()
        {
        }

        bool IValidateAttribute<DateTime>.IsValidate(DateTime value)
        {
            throw new NotImplementedException();
        }
    }
}
